<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<jsp:include page="../common.jsp"/>
<body>
<div id="wrap">
  <div id="top_content">
    <jsp:include page="../head.jsp"/>
    <div id="content">
      <p id="whereami">
      </p>

      <h1>
        Welcome! 
      </h1>
      <table class="table">
        <tr class="table_header">
          <td>
            userName
          </td>
          <td>
            loginIp
          </td>
          <td>
            lastloginTime
          </td>
        </tr>
        <c:forEach items="${userLoginList}" var="userLoginInfo" varStatus="i">
        <tr class="row${i.index % 2 + 1}">
          <td>
            ${userLoginInfo.userName}
          </td>
          <td>
            ${userLoginInfo.loginIp}
          </td>
          <td>
            <fmt:formatDate value="${userLoginInfo.loginTime}" pattern="yyyy年MM月dd日 HH:mm:ss"/>
          </td>

        </tr>
        </c:forEach>
      </table>

    </div>
  </div>
<jsp:include page="../foot.jsp"/>
</div>
</body>
</html>
